package CelestialDataAccess;

public abstract class User {

    protected String m_strEmail;
    protected String m_strPassword;
    protected int m_iUserLevel;
    protected String m_strFirstName;
    protected String m_strLastName;

    /* get and set methods */
    public String getPassword(){return m_strPassword;}
    public void setPassword(String pw){ m_strPassword = pw; }
    /*-----------------------------------------------------------------------*/
    public int getUserLevel(){return m_iUserLevel;}
    public void setUserLevel(int lvl){ m_iUserLevel = lvl; }
    /*-----------------------------------------------------------------------*/
    public String getName(){ return m_strFirstName + " " + m_strLastName;}
    /*-----------------------------------------------------------------------*/
    public String getFirstName(){return m_strFirstName;}
    public void setFirstName(String fname){ m_strFirstName = fname; }
    /*-----------------------------------------------------------------------*/
    public String getLastName(){return m_strLastName;}
    public void setLastName(String lname){ m_strLastName = lname; }
    /*-----------------------------------------------------------------------*/
    public String getEmail(){return m_strEmail;}
    public void setEmail(String email){ m_strEmail = email; }
    /*-----------------------------------------------------------------------*/
    /* Overridden methods */
    public @Override String toString(){ return getName(); }
    /*************************************************************************/
}
